package com.ug_project.objects

import com.ug_project.views.isNotNullOrEmpty

fun String?.isNotNullOrNotEmpty(action: (String) -> Unit): Boolean {
    if (this != null && this.isNotEmpty()) {
        action(this)
        return true
    }
    return false
}

fun String?.isNullOrEmpty(action: (String) -> Unit): Boolean {
    if (this != null && this.isNotEmpty()) {
        action(this)
        return true
    }
    return false
}